# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-keepass
pkgver=4.0.1
pkgrel=0
pkgdesc="Python3 library to interact with keepass databases"
url="https://github.com/pschmitt/pykeepass"
arch="noarch !s390x" # pykeepass test fail on s390x
license="GPL-3.0-only"
depends="
	py3-argon2-cffi
	py3-cffi
	py3-construct
	py3-dateutil
	py3-future
	py3-lxml
	py3-pycryptodomex
	python3
	"
makedepends="py3-setuptools"
source="
	https://pypi.io/packages/source/p/pykeepass/pykeepass-$pkgver.tar.gz
	0001-relax-dependencies.patch
	"
builddir="$srcdir/pykeepass-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
8120ba55257789eaf5b0e8a36a64316d35d4e79a6c7cb015455c2a18db6b5fb4339d62f5be6fe78b462ca0136c15b4fb2d0de84414cfa8c58ba7473e03dc1fce  pykeepass-4.0.1.tar.gz
3f2451abbca157fe9c72b0ae5548c129d8aeefb57767c5e4ebbbb6907fcefe7f6d0fd305a7aaf91c264b3471a3904190748a81180fe2c5fb6d7ecc56254e812f  0001-relax-dependencies.patch
"
